package com.john.sqwen.ecbc.quartz.task;

import com.john.sqwen.ecbc.commons.utils.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author john_sqwen
 * @packageName com.john.sqwen.ecbc.quartz.task
 * @date 2022/4/25
 * @projectName ecbc-base
 * @Description EcbcTask
 **/
@Component("ecbcTask")
public class EcbcTask {
    protected final Logger logger = LoggerFactory.getLogger(EcbcTask.class);
    public void ecbcMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
    {
        logger.info(StringUtils.format("执行多参方法： 字符串类型{}，布尔类型{}，长整型{}，浮点型{}，整形{}", s, b, l, d, i));
    }

    public void ecbcParams(String params)
    {
      logger.info("执行有参方法：" + params);
    }

    public void ecbcNoParams()
    {
        logger.info("执行无参方法");
    }
}
